Optimal. Leaf size=131 \[ \frac {2 a^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^3 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}+\frac {4 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {36 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.18, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 6, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {3238, 3791, 3769, 3771, 2639, 2641} \[ \frac {2 a^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^3 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}+\frac {4 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {36 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3238
Rule 3769
Rule 3771
Rule 3791
Rubi steps
\begin {align*} \int (a+a \cos (c+d x))^3 \sqrt {\sec (c+d x)} \, dx &=\int \frac {(a+a \sec (c+d x))^3}{\sec ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\int \left (\frac {a^3}{\sec ^{\frac {5}{2}}(c+d x)}+\frac {3 a^3}{\sec ^{\frac {3}{2}}(c+d x)}+\frac {3 a^3}{\sqrt {\sec (c+d x)}}+a^3 \sqrt {\sec (c+d x)}\right ) \, dx\\ &=a^3 \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x)} \, dx+a^3 \int \sqrt {\sec (c+d x)} \, dx+\left (3 a^3\right ) \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx+\left (3 a^3\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {2 a^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^3 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}+\frac {1}{5} \left (3 a^3\right ) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx+a^3 \int \sqrt {\sec (c+d x)} \, dx+\left (a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\left (3 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx\\ &=\frac {6 a^3 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^3 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^3 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}+\frac {1}{5} \left (3 a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx+\left (a^3 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx\\ &=\frac {36 a^3 \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {4 a^3 \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{d}+\frac {2 a^3 \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a^3 \sin (c+d x)}{d \sqrt {\sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.28, size = 137, normalized size = 1.05 \[ \frac {a^3 \left (\frac {144 i \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};-e^{2 i (c+d x)}\right )}{\sqrt {1+e^{2 i (c+d x)}}}+2 \left (-20 i \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};-e^{2 i (c+d x)}\right ) \sec (c+d x)+10 \sin (c+d x)+\sin (2 (c+d x))-36 i\right )\right )}{10 d \sqrt {\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 1.13, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (a^{3} \cos \left (d x + c\right )^{3} + 3 \, a^{3} \cos \left (d x + c\right )^{2} + 3 \, a^{3} \cos \left (d x + c\right ) + a^{3}\right )} \sqrt {\sec \left (d x + c\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \cos \left (d x + c\right ) + a\right )}^{3} \sqrt {\sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.56, size = 250, normalized size = 1.91 \[ -\frac {4 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, a^{3} \left (-4 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+14 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-9 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-6 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (a \cos \left (d x + c\right ) + a\right )}^{3} \sqrt {\sec \left (d x + c\right )}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^3 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ a^{3} \left (\int 3 \cos {\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}}\, dx + \int 3 \cos ^{2}{\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}}\, dx + \int \cos ^{3}{\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}}\, dx + \int \sqrt {\sec {\left (c + d x \right )}}\, dx\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________